/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.course;

import java.util.List;

import com.idenger.modules.edu.dao.course.EduSectionDao;
import com.idenger.modules.edu.entity.course.EduSection;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;

/**
 * 章节Service
 * @author chenlin
 * @version 2017-12-01
 */
@Service
@Transactional(readOnly = true)
public class EduSectionService extends CrudService<EduSectionDao, EduSection> {

	public EduSection get(String id) {
		return super.get(id);
	}
	
	public List<EduSection> findList(EduSection eduSection) {
		return super.findList(eduSection);
	}
	
	public List<EduSection> findEduSectionByCourseId(String courseId) {
		return dao.findEduSectionByCourseId(courseId);
	}
	
	public Page<EduSection> findPage(Page<EduSection> page, EduSection eduSection) {
		return super.findPage(page, eduSection);
	}
	
	@Transactional(readOnly = false)
	public void save(EduSection eduSection) {
		super.save(eduSection);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduSection eduSection) {
		super.delete(eduSection);
	}
	
}